<h3>Order Details</h3>
<table class="table table-bordered table-striped adminGrid" summary="Meeting Results">
    <thead>
        <tr>
            <th width="200">Product</th>
            <th width="50">Qty</th>
            <th width="80">Price</th>
            <th width="80">Total</th>
        </tr>
    </thead>
    <tbody>
        <?php
        $totalPrice    = 0;
        $totalQuantity = 0;
        $orderDetail   = new OrderDetails;
        ?>
        <?php foreach ($orderDetails as $orderDetail): ?>
            <tr>
                <td>
                    <?php if ($orderDetail->getProduct()->getDeletedAt()): ?>
                        <?php echo $orderDetail->getProduct()->getTitle() ?>
                    <?php else: ?>
                        <a href="<?php echo url_for('shopCartAdminProducts/show?id=' . $orderDetail->getProduct()->getId()) ?>"><?php echo $orderDetail->getProduct()->getTitle() ?></a>
                    <?php endif ?>
                </td>
                <td><?php echo $orderDetail->getQuantity() ?></td>
                <td>$ <?php echo $orderDetail->getPrice() ?></td>
                <td>$ <?php echo $orderDetail->getPrice() * $orderDetail->getQuantity() ?></td>
            </tr>
            <?php
            $totalPrice+=($orderDetail->getPrice() * $orderDetail->getQuantity());
            $totalQuantity+=$orderDetail->getQuantity();
            ?>
        <?php endforeach; ?>
        <tr>
            <td class="result">Total:</td>
            <td class="result"><span id="totalQuantity"><?php echo $totalQuantity ?></span></td>
            <td></td>
            <td class="result">$ <span id="totalPrice"><?php echo $totalPrice ?></span></td>
        </tr>
    </tbody>
</table>